﻿@model XSTDZ.ERP.Application.DataContracts.DeptDto

@{
    ViewBag.Title = " - 编辑部门";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
     <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}
<h2>编辑部门</h2>
<div class="wp100">
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">@* <h2>新增入库单</h2>*@
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
        <td class="title"> @Html.HiddenFor(model => model.Id)   组机机构名称：</td>
        <td><input type="text" class="text" value="@ViewBag.OrgDto.Name" id="OrgName" name="OrgName" disabled="disabled" />
             <input type="hidden" value="@ViewBag.OrgDto.Id" id="OrgId" name="OrgId" />
        </td>

        <td class="title"><div class="editor-label @ViewBag.IsOrg" >父级部门：</div></td>
        <td>   <div class="editor-field @ViewBag.IsOrg">
             <input type="text" class="text" value="@ViewBag.ParentName" id="parentName" name="parentName"  disabled="disabled" />
             <input type="hidden" value="@ViewBag.ParentId" id="parentId" name="parentId" />
        </div>
         </td>
 </tr>

        <tr>
        <td class="title"> @Html.LabelFor(model => model.Code)</td>
        <td>   @Html.TextBoxFor(model => model.Code, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Code)
        </td>

        <td class="title">@Html.LabelFor(model => model.Name)</td>
        <td>   @Html.TextBoxFor(model => model.Name, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Name)
         </td>
 </tr>
 <tr>
        <td class="title"> @Html.LabelFor(model => model.Description)</td>
        <td>   @Html.TextBoxFor(model => model.Description, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Description)
        </td>

        <td class="title">@Html.LabelFor(model => model.Order)</td>
        <td>   @Html.TextBoxFor(model => model.Order, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Order)
         </td>
 </tr>
    
 <tr>
        <td  colspan="4">
              <p class="divBtn">
              <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="tree" />
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="submit" value="修改"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
        </p>
        </td>
    </tr>
    </table>
}
</div>
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>